gtk4.git
5 years agoMerge branch 'patch-1' into 'master'
Matthias Clasen [Sun, 27 Sep 2020 15:03:04 +0000 (15:03 +0000)]
Merge branch 'patch-1' into 'master'

treestore: Document the fact that iter is modified by the function, in a machine-readable fashion.

See merge request GNOME/gtk!2613

5 years agoUpdate gtktreestore.c: gtk_tree_store_remove didn't have the proper comment annotation
Danny Milosavljevic [Sun, 27 Sep 2020 15:03:03 +0000 (15:03 +0000)]
Update gtktreestore.c: gtk_tree_store_remove didn't have the proper comment annotation
"inout" for the parameter ITER passed.  This means that bindings would misjudge what
the function does.  In the case of guile-gi, it would be misjudged for a predicate,
see gulie-gi bug 87.

5 years agoMerge branch 'issue2627-gtk4' into 'master'
Matthias Clasen [Sun, 27 Sep 2020 14:51:23 +0000 (14:51 +0000)]
Merge branch 'issue2627-gtk4' into 'master'

gdk/wayland: Replace gtk-primary-selection with primary-selection-unstable-v1

See merge request GNOME/gtk!2630

5 years agoMerge branch 'avoid-gl-texture-download' into 'master'
Matthias Clasen [Sun, 27 Sep 2020 14:47:52 +0000 (14:47 +0000)]
Merge branch 'avoid-gl-texture-download' into 'master'

gsk: Avoid downloading GL textures when possible

See merge request GNOME/gtk!2628

5 years agogdk/wayland: Replace gtk-primary-selection with primary-selection-unstable-v1
Robert Mader [Sun, 27 Sep 2020 14:10:52 +0000 (16:10 +0200)]
gdk/wayland: Replace gtk-primary-selection with primary-selection-unstable-v1

The later is the public upstream version, while identical implementation wise.

https://gitlab.gnome.org/GNOME/gtk/-/issues/2591

5 years agoMerge branch 'fontchooser-no-lang' into 'master'
Matthias Clasen [Sun, 27 Sep 2020 12:42:42 +0000 (12:42 +0000)]
Merge branch 'fontchooser-no-lang' into 'master'

fontchooser: Fix builds without PangoFT2

See merge request GNOME/gtk!2629

5 years agogsk: Avoid downloading GL textures when possible
Matthias Clasen [Sun, 27 Sep 2020 01:55:28 +0000 (21:55 -0400)]
gsk: Avoid downloading GL textures when possible

I found that the gears demo was spending 40% cpu
downloading a GL texture every frame, only to
upload it again to another context.

While the GSK rendering and the GtkGLArea use different
GL contexts, they are (usually) connected by sharing data
with the same global context, so we can just use the
texture without the download/upload dance. This brings
gears down to < 10% cpu.

5 years agofontchooser: Fix builds without PangoFT2
Matthias Clasen [Thu, 24 Sep 2020 09:37:32 +0000 (17:37 +0800)]
fontchooser: Fix builds without PangoFT2

Currently, only if PangoFT2 is present and used it is supported
to retrieve the languages that are supported by a particular font.

If we don't have PangoFT2, remove the language filtering and the
sample text selection.

Based on earlier work by Chun-wei Fan, see
https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2614

5 years agoMerge branch 'BUG_gtktreeview_headers_focus_on_click_GTK4' into 'master'
Matthias Clasen [Sat, 26 Sep 2020 22:50:23 +0000 (22:50 +0000)]
Merge branch 'BUG_gtktreeview_headers_focus_on_click_GTK4' into 'master'

GtkTreeviewColumn: don't focus-on-click header buttons

See merge request GNOME/gtk!1806

5 years agotestupload: Test more formats
Matthias Clasen [Sat, 26 Sep 2020 21:26:12 +0000 (17:26 -0400)]
testupload: Test more formats

Copy the format conversion code from GdkMemoryTexture
so we can produce all formats, and test them all.

The upload fast paths assume that the stride is a
multiple of four, so some of the padding values cause
it to fail. Apart from that, things seem to work for
all combinations.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 26 Sep 2020 14:00:32 +0000 (14:00 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2626

5 years agoAdd a test for various texture uploads
Matthias Clasen [Sat, 26 Sep 2020 03:02:19 +0000 (23:02 -0400)]
Add a test for various texture uploads

Create textures with various characteristics (alpha, premultiplication,
stride) that trigger different code paths in the gl texture upload
function, and show the resulting images. If all goes well, they all
should look the same.

On my system, this tests texture upload for memory formats
GDK_MEMORY_B8G8R8A8_PREMULTIPLIED, GDK_MEMORY_R8G8B8A8, and
GDK_MEMORY_R8G8B8, and it works with both gl and gles.

5 years agoNEWS: Updates
Matthias Clasen [Sat, 26 Sep 2020 01:27:25 +0000 (21:27 -0400)]
NEWS: Updates

5 years agoMerge branch 'fix-texture-upload-more' into 'master'
Matthias Clasen [Sat, 26 Sep 2020 12:52:25 +0000 (12:52 +0000)]
Merge branch 'fix-texture-upload-more' into 'master'

More texture upload fixes

Closes #3198

See merge request GNOME/gtk!2624

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 26 Sep 2020 02:02:13 +0000 (02:02 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

gl: Make debug spew more complete

Closes #3197

See merge request GNOME/gtk!2623

5 years agoMore texture upload fixes
Matthias Clasen [Sat, 26 Sep 2020 01:59:33 +0000 (21:59 -0400)]
More texture upload fixes

In some cases, with bpp == 3 and a rowstride
that is divisible by 4, we were passing invalid
parameters to GL.

Fixes: #3198
5 years agoMerge branch 'add-child-clash' into 'master'
Matthias Clasen [Sat, 26 Sep 2020 01:17:08 +0000 (01:17 +0000)]
Merge branch 'add-child-clash' into 'master'

Make GtkBuildable vfunc accessor functions private

Closes #3191

See merge request GNOME/gtk!2619

5 years agopopup: Fix up a doc blurb
Matthias Clasen [Sat, 26 Sep 2020 00:43:01 +0000 (20:43 -0400)]
popup: Fix up a doc blurb

The GdkPopup:autohide property was mis-documented.

Fixes: #3197
5 years agogl: Make debug spew more complete
Matthias Clasen [Fri, 25 Sep 2020 19:52:15 +0000 (15:52 -0400)]
gl: Make debug spew more complete

List GL_EXT_unpack_subimage among the extensions
we check for.

5 years agoMerge branch 'fix-rgb-upload' into 'master'
Matthias Clasen [Sat, 26 Sep 2020 00:30:31 +0000 (00:30 +0000)]
Merge branch 'fix-rgb-upload' into 'master'

gl: Fix RGB uploads

Closes #3194

See merge request GNOME/gtk!2620

5 years agodocs: Document GtkBuildable changes in migration guide
Florian Müllner [Fri, 25 Sep 2020 20:54:52 +0000 (22:54 +0200)]
docs: Document GtkBuildable changes in migration guide

https://gitlab.gnome.org/GNOME/gtk/-/issues/3191

5 years agobuildable: Make vfunc accessor functions private
Florian Müllner [Fri, 25 Sep 2020 12:27:26 +0000 (14:27 +0200)]
buildable: Make vfunc accessor functions private

With the exception of gtk_buildable_get_id(), those are only used
to construct objects from XML descriptions, which is functionality
internal to GTK.

The API is therefore unlikely to be missed, and keeping it internal
means they can no longer unintentionally shadow object methods in
bindings with less namespacing; for example it's currently ambiguous
whether `infoBar.add_child()` refers to gtk_info_bar_add_child() or
gtk_buildable_add_child().

https://gitlab.gnome.org/GNOME/gtk/-/issues/3191

5 years agobuildable: Rename set_name() to set_buildable_id()
Florian Müllner [Fri, 25 Sep 2020 14:43:24 +0000 (16:43 +0200)]
buildable: Rename set_name() to set_buildable_id()

GtkBuildable's get_name()/set_name() methods may shadow
GtkWidget's methods. Avoid that by renaming the API to
get_buildable_id()/set_buildable_id(), which also reflects
the name of the XML attribute the API refers to.

https://gitlab.gnome.org/GNOME/gtk/-/issues/3191

5 years agogl: Reset GL_UNPACK_ALIGNMENT
Matthias Clasen [Fri, 25 Sep 2020 20:17:45 +0000 (16:17 -0400)]
gl: Reset GL_UNPACK_ALIGNMENT

Reset GL_UNPACK_ALIGNMENT to its initial value of 4 after
changing it for a glTexImage2D call.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 25 Sep 2020 18:25:09 +0000 (18:25 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

columnview: Simplify column constructors

See merge request GNOME/gtk!2622

5 years agocolumnview: Simplify column constructors
Matthias Clasen [Fri, 25 Sep 2020 17:53:42 +0000 (13:53 -0400)]
columnview: Simplify column constructors

Drop gtk_column_view_column_new_with_factory and
just make gtk_column_view_column_new accept a
nullable factory. This follows what we've been
doing elsewhere.

Update all callers.

5 years agoMerge branch 'wip/carlosg/for-master' into 'master'
Matthias Clasen [Fri, 25 Sep 2020 17:49:59 +0000 (17:49 +0000)]
Merge branch 'wip/carlosg/for-master' into 'master'

Wip/carlosg/for master

Closes #3125 and #3121

See merge request GNOME/gtk!2621

5 years agogtkbutton: Clean up priv->in_button
Carlos Garnacho [Fri, 25 Sep 2020 17:15:29 +0000 (19:15 +0200)]
gtkbutton: Clean up priv->in_button

This is now only toggled around, may be cleaned up.

5 years agogtkbutton: Check release coordinates on all release event types
Carlos Garnacho [Fri, 25 Sep 2020 17:10:46 +0000 (19:10 +0200)]
gtkbutton: Check release coordinates on all release event types

The priv->in_button state that used to be relied upon for pointer
events has been reduced over time to a broken state, since the button
does not track crossing events anymore.

Make the coordinate-based checks apply for pointer events too, besides
touch events. This fixes GtkButton mistakenly emitting ::clicked with
pointer button releases outside the widget.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3121
5 years agogl: Fix RGB uploads
Matthias Clasen [Fri, 25 Sep 2020 17:15:54 +0000 (13:15 -0400)]
gl: Fix RGB uploads

I don't really know what to say, other than:
OpenGL is terrible

Fixes: #3194
5 years agogtktextview: Avoid GtkGestureClick claiming on touch press
Carlos Garnacho [Fri, 25 Sep 2020 15:50:04 +0000 (17:50 +0200)]
gtktextview: Avoid GtkGestureClick claiming on touch press

We still want the drag gesture (and text selection) to work. Avoid claiming
the gesture early, like it's done in the pointer case.

5 years agogtkscrolledwindow: Do not eagerly claim touch press event
Carlos Garnacho [Fri, 25 Sep 2020 15:47:26 +0000 (17:47 +0200)]
gtkscrolledwindow: Do not eagerly claim touch press event

Claiming early makes the contents unable to react to the touch press
event. Do this on GtkGestureDrag::update past a threshold, so the
child widget(s) can claim before the scrolledwindow does.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3125
5 years agogtkscrolledwindow: Drop gtk_scrolled_window_set_capture_button_press()
Carlos Garnacho [Fri, 25 Sep 2020 15:23:00 +0000 (17:23 +0200)]
gtkscrolledwindow: Drop gtk_scrolled_window_set_capture_button_press()

This API is kinda stuck in the GdkEvent days, we now negotiate ownership
of the input sequence via GtkGestures. Remove it as it reflects a way to
work that was not exactly accurate and it will turn plainly wrong soon.

5 years agoMerge branch 'gles-texture-colors' into 'master'
Matthias Clasen [Fri, 25 Sep 2020 14:53:19 +0000 (14:53 +0000)]
Merge branch 'gles-texture-colors' into 'master'

Fix uploads of textures in GLES (and make texture uploads better)

See merge request GNOME/gtk!2616

5 years agoMerge branch 'wip/baedert/for-master' into 'master'
Timm Bäder [Fri, 25 Sep 2020 13:35:20 +0000 (13:35 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'

Wip/baedert/for master

See merge request GNOME/gtk!2617

5 years agoDrop gdk_cairo_surface_upload_to_gl() helper
Alexander Larsson [Fri, 25 Sep 2020 08:08:21 +0000 (10:08 +0200)]
Drop gdk_cairo_surface_upload_to_gl() helper

There is nothing really special about this code, its just a helper for
uploading pixel data to opengl, and we're not really in the business
of doing opengl-specific helper functions.

5 years agogl backend: Avoid roundtripping via surface when updloading
Alexander Larsson [Thu, 24 Sep 2020 14:58:46 +0000 (16:58 +0200)]
gl backend: Avoid roundtripping via surface when updloading

Do custom uploads rather than using gdk_cairo_surface_upload_to_gl(),
because this way we avoids a roundtrip (memcpy and possibly conversion)
to the cairo image surface format.

5 years agogdk_gl_context_upload_texture() avoid conversion for pixbuf format
Alexander Larsson [Thu, 24 Sep 2020 15:01:04 +0000 (17:01 +0200)]
gdk_gl_context_upload_texture() avoid conversion for pixbuf format

The gdk-pixbuf non-rgba format can be directly uploaded without
conversion.

The rgba format needs alpha premultiplication though, which is not
supported by GL during upload.

5 years agoCorrectly upload textures for GLES
Alexander Larsson [Thu, 24 Sep 2020 13:03:48 +0000 (15:03 +0200)]
Correctly upload textures for GLES

GLES doesn't support the GL_BGRA +  GL_UNSIGNED_INT_24_8 hack that
we use on desktop OpenGL to upload textures directly in the cairo
pixel format. This adds the required conversions to all the places
that currently need it.

We also add a data_format to the internal gdk_gl_context_upload_texture()
function to make it clearer what the format are. Currently it is always
the cairo image surface format, but eventually we want to support other
formats so that we can avoid some of the unnecessary conversions we do.

Also, the current gdk_gl_context_upload_texture() code always converts
to a cairo format and uploads that like we did before. Later commits
will allow this to use other upload formats that gl supports to avoid
conversions.

5 years agoAdd GDK_MEMORY_R8G8B8A8_PREMULTIPLIED
Alexander Larsson [Thu, 24 Sep 2020 13:01:51 +0000 (15:01 +0200)]
Add GDK_MEMORY_R8G8B8A8_PREMULTIPLIED

This is the default OpenGL format, and in fact the only pixel format
that GLES supports uploading as. Actually, the premultiplied part is
really just about how we use the textures, but all textures in GTK
are premultiplied.

5 years agotexture: Unvirtualize download_surface
Alexander Larsson [Thu, 24 Sep 2020 13:40:17 +0000 (15:40 +0200)]
texture: Unvirtualize download_surface

We only have one implementation, so why do all this vfunc work?

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Thu, 24 Sep 2020 18:50:26 +0000 (18:50 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3180, #3178, and #3179

See merge request GNOME/gtk!2618

5 years agocolumview: Don't overdraw
Matthias Clasen [Thu, 24 Sep 2020 18:30:40 +0000 (14:30 -0400)]
columview: Don't overdraw

Just always tell the title and cell widgets to
clip their children to the right size. Otherwise
we risk things getting out of sync and unintended
overdraw.

Fixes: #3179
5 years agocolumview: Fix column resizing
Matthias Clasen [Thu, 24 Sep 2020 18:18:38 +0000 (14:18 -0400)]
columview: Fix column resizing

We were not handling the fixed_width quite right,
and that was causing screaming from the GTK size
allocation machinery.

Fixes: #3178
5 years agocssimagefallback: Whitespace
Timm Bäder [Wed, 23 Sep 2020 04:15:08 +0000 (06:15 +0200)]
cssimagefallback: Whitespace

5 years agocssimagefallback: Avoid allocating GPtrArray for colors
Timm Bäder [Wed, 23 Sep 2020 04:06:42 +0000 (06:06 +0200)]
cssimagefallback: Avoid allocating GPtrArray for colors

If we just parse a color, like image(#FFF), avoid allocating the
GPtrArray to store images. This happens in Adwaita for background images
of backdrop buttons. We save around 70 GPtrArrays this way.

5 years agoAdwaita: Fix calendar header button backdrop bg color
Timm Bäder [Wed, 23 Sep 2020 03:58:40 +0000 (05:58 +0200)]
Adwaita: Fix calendar header button backdrop bg color

5 years agogl renderer: Lower maximum gradient stop count
Timm Bäder [Mon, 21 Sep 2020 19:23:57 +0000 (21:23 +0200)]
gl renderer: Lower maximum gradient stop count

6 is still plenty according to my market research.

Should help with #2624

5 years agogl renderer: Fall back to cairo if gradients use too many stops
Timm Bäder [Mon, 21 Sep 2020 19:19:19 +0000 (21:19 +0200)]
gl renderer: Fall back to cairo if gradients use too many stops

5 years agotextbuffer: Don't try to inset NULL text from clipboard
Timm Bäder [Sat, 19 Sep 2020 16:41:10 +0000 (18:41 +0200)]
textbuffer: Don't try to inset NULL text from clipboard

That used to generate a critical error message.

Also free() the data.

5 years agogl renderer: Only return error if creating programs failed
Timm Bäder [Sat, 19 Sep 2020 16:37:53 +0000 (18:37 +0200)]
gl renderer: Only return error if creating programs failed

5 years agogl renderer: Use scale_x/y when rendering clipped nodes
Timm Bäder [Sat, 19 Sep 2020 16:16:04 +0000 (18:16 +0200)]
gl renderer: Use scale_x/y when rendering clipped nodes

5 years agogl renderer: Don't use ops_get_scale() when rendering clip nodes
Timm Bäder [Sat, 19 Sep 2020 16:13:00 +0000 (18:13 +0200)]
gl renderer: Don't use ops_get_scale() when rendering clip nodes

Differentiate between scale_x and scale_y. This works better for e.g.
transform nodes using scaleX().

5 years agogl renderer: Support scaleX/Y better when rendering radial gradients
Timm Bäder [Sat, 19 Sep 2020 15:56:25 +0000 (17:56 +0200)]
gl renderer: Support scaleX/Y better when rendering radial gradients

We should do this everywhere, but this is a start.

5 years agolistview: Avoid a critical when reordering
Matthias Clasen [Thu, 24 Sep 2020 02:53:21 +0000 (22:53 -0400)]
listview: Avoid a critical when reordering

When sorting a cell into the place its already at,
we were triggering criticals. Avoid that.

Fixes: #3180
5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Wed, 23 Sep 2020 22:44:22 +0000 (22:44 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3188

See merge request GNOME/gtk!2612

5 years agofontchooser: Don't center the list
Matthias Clasen [Wed, 23 Sep 2020 20:32:48 +0000 (16:32 -0400)]
fontchooser: Don't center the list

The centered layout of the font previews don't look appealing
and make it harder to judge the relative width and weight of
the individual styles.

Fixes: #3188
5 years agoUpdate Hungarian translation
Balázs Úr [Wed, 23 Sep 2020 15:25:12 +0000 (15:25 +0000)]
Update Hungarian translation

5 years agoUpdate Hungarian translation
Balázs Úr [Wed, 23 Sep 2020 14:39:40 +0000 (14:39 +0000)]
Update Hungarian translation

5 years agogtktreeview: Fix child access after TEST_EXPAND_ROW
Thomas Holder [Tue, 22 Sep 2020 07:27:29 +0000 (09:27 +0200)]
gtktreeview: Fix child access after TEST_EXPAND_ROW

In gtk_tree_view_build_tree with recurse=TRUE, the TEST_EXPAND_ROW
signal might invalidate the child iterator. Getting the iterator after
the signal (instead of before) fixes the issue.

Fixes https://gitlab.com/inkscape/inkscape/-/issues/1879

5 years agoMerge branch 'wip/jimmac/osd-spinbutton' into 'master'
Matthias Clasen [Wed, 23 Sep 2020 11:47:01 +0000 (11:47 +0000)]
Merge branch 'wip/jimmac/osd-spinbutton' into 'master'

Adwaita: osd spinbutton specificity bump

Closes #2769

See merge request GNOME/gtk!2610

5 years agoMerge branch 'make-claiming-button-release-work' into 'master'
Matthias Clasen [Wed, 23 Sep 2020 11:35:59 +0000 (11:35 +0000)]
Merge branch 'make-claiming-button-release-work' into 'master'

gestures: Make claiming button release work

See merge request GNOME/gtk!2576

5 years agoAdwaita: osd spinbutton specificity bump
Jakub Steiner [Wed, 23 Sep 2020 08:16:55 +0000 (10:16 +0200)]
Adwaita: osd spinbutton specificity bump

- mimic the peculiar selector from the normal style onto osd to
  override.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/2769

5 years agoMerge branch 'improve-columnview-styling' into 'master'
Matthias Clasen [Tue, 22 Sep 2020 03:01:38 +0000 (03:01 +0000)]
Merge branch 'improve-columnview-styling' into 'master'

Adwaita: Improve columnview styling

See merge request GNOME/gtk!2608

5 years agoAdwaita: Don't restrict columnview editablelabel style to .data-table
nana-4 [Tue, 22 Sep 2020 01:40:15 +0000 (10:40 +0900)]
Adwaita: Don't restrict columnview editablelabel style to .data-table

This should be available without .data-table.

5 years agoAdwaita: Improve columnview styling
nana-4 [Tue, 22 Sep 2020 01:37:04 +0000 (10:37 +0900)]
Adwaita: Improve columnview styling

- Move padding from parent row to child cell.
- Align horizontal sizing of cell with header button.
- Properly support GtkColumnView:show-column-separators.
- Change cell height with and without .data-table.

5 years agoAdwaita: Fix separator color for lists
nana-4 [Tue, 22 Sep 2020 01:35:15 +0000 (10:35 +0900)]
Adwaita: Fix separator color for lists

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 21 Sep 2020 18:11:41 +0000 (18:11 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2607

5 years agoinspector: Make switches go back to normal size
Matthias Clasen [Sun, 20 Sep 2020 16:13:15 +0000 (12:13 -0400)]
inspector: Make switches go back to normal size

5 years agogtk-demo: Improve the pickers demo
Matthias Clasen [Sun, 20 Sep 2020 14:57:19 +0000 (10:57 -0400)]
gtk-demo: Improve the pickers demo

"Two of every kind..." Add some customized pickers
here. This found a number of issues that have been
fixed in the preceding commits.

5 years agocolorbutton: Fix handling of transient parents
Matthias Clasen [Sun, 20 Sep 2020 16:03:47 +0000 (12:03 -0400)]
colorbutton: Fix handling of transient parents

When we create the dialog before the button has
been rooted, we need to update its transient
parent when that happens.

5 years agoMerge branch 'fix-hover-tracking' into 'master'
Timm Bäder [Mon, 21 Sep 2020 12:20:00 +0000 (12:20 +0000)]
Merge branch 'fix-hover-tracking' into 'master'

main: Update pointer focus state for button releases

Closes #3172

See merge request GNOME/gtk!2601

5 years agoUpdated Czech translation
Marek Černocký [Mon, 21 Sep 2020 06:30:59 +0000 (08:30 +0200)]
Updated Czech translation

5 years agofilechooser: Fix gtk_file_chooser_set_choice
Matthias Clasen [Sun, 20 Sep 2020 16:01:52 +0000 (12:01 -0400)]
filechooser: Fix gtk_file_chooser_set_choice

This broke when it was ported to GtkDropDown.

5 years agofontchooser: Make sure the tweak button is updated
Matthias Clasen [Sun, 20 Sep 2020 14:55:54 +0000 (10:55 -0400)]
fontchooser: Make sure the tweak button is updated

This was showing up as tweak buttons being visible
when they should not. The code probably relied on
widgets being hidden by default (as they were in
GTK3).

5 years agofontchooser: Handle families without faces
Matthias Clasen [Sun, 20 Sep 2020 14:39:24 +0000 (10:39 -0400)]
fontchooser: Handle families without faces

This might seem useless, but I've met fonts
where pango_font_family_get_face (family, NULL)
return NULL. Handle it without criticals.

5 years agodocs: Improve gtk_widget_set_font_map docs
Matthias Clasen [Sun, 20 Sep 2020 14:58:46 +0000 (10:58 -0400)]
docs: Improve gtk_widget_set_font_map docs

5 years agoMerge branch 'fix-wayland-popups' into 'master'
Matthias Clasen [Sun, 20 Sep 2020 14:19:50 +0000 (14:19 +0000)]
Merge branch 'fix-wayland-popups' into 'master'

wayland: Fix grabbing popup

See merge request GNOME/gtk!2604

5 years agowayland: Fix grabbing popup
Matthias Clasen [Sun, 20 Sep 2020 14:02:53 +0000 (10:02 -0400)]
wayland: Fix grabbing popup

A typo snuck into commit 3023a61e1d65bee1db3 that
caused us to fail all grabbing popups with
"grab failed: not viewable". Fix that.

5 years agoUpdate Turkish translation
Emin Tufan Çetin [Sun, 20 Sep 2020 06:38:03 +0000 (06:38 +0000)]
Update Turkish translation

5 years agoMerge branch 'kill-widget-new' into 'master'
Matthias Clasen [Sat, 19 Sep 2020 21:25:32 +0000 (21:25 +0000)]
Merge branch 'kill-widget-new' into 'master'

Drop gtk_widget_new

See merge request GNOME/gtk!2603

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 19 Sep 2020 21:22:30 +0000 (21:22 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2602

5 years agoDrop gtk_widget_new
Matthias Clasen [Sat, 19 Sep 2020 20:58:42 +0000 (16:58 -0400)]
Drop gtk_widget_new

An abstract type should not have a constructor.
If you want to be generic, just use g_object_new.

5 years agoNEWS: Updates
Matthias Clasen [Sat, 19 Sep 2020 20:47:52 +0000 (16:47 -0400)]
NEWS: Updates

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 19 Sep 2020 20:48:49 +0000 (20:48 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

textbuffer: Redo insert markup a little bit

See merge request GNOME/gtk!2600

5 years agomain: Update pointer focus state for button releases
Matthias Clasen [Sat, 19 Sep 2020 20:45:56 +0000 (16:45 -0400)]
main: Update pointer focus state for button releases

Failure to do so makes the old pointer focus target
'sticky', because we end up ignoring the result of
picking the pointer focus until a motion event comes
in.

Fixes: #3172
5 years agoshortcutswindow: Drop the Private struct
Matthias Clasen [Sat, 19 Sep 2020 20:22:04 +0000 (16:22 -0400)]
shortcutswindow: Drop the Private struct

5 years agorevealer: Drop the Private struct
Matthias Clasen [Sat, 19 Sep 2020 18:41:41 +0000 (14:41 -0400)]
revealer: Drop the Private struct

5 years agomagnifier: Drop the Private struct
Matthias Clasen [Sat, 19 Sep 2020 18:36:44 +0000 (14:36 -0400)]
magnifier: Drop the Private struct

5 years agoCosmetic
Matthias Clasen [Sat, 19 Sep 2020 18:31:02 +0000 (14:31 -0400)]
Cosmetic

5 years agocolorscale: Drop the Private struct
Matthias Clasen [Sat, 19 Sep 2020 18:26:48 +0000 (14:26 -0400)]
colorscale: Drop the Private struct

5 years agoMerge branch 'wayland-backend-api-cleanup' into 'master'
Matthias Clasen [Sat, 19 Sep 2020 18:19:18 +0000 (18:19 +0000)]
Merge branch 'wayland-backend-api-cleanup' into 'master'

wayland: Change backend api to use GdkToplevel

See merge request GNOME/gtk!2598

5 years agotextbuffer: Redo insert markup a little bit
Matthias Clasen [Sat, 19 Sep 2020 18:17:28 +0000 (14:17 -0400)]
textbuffer: Redo insert markup a little bit

Redo the tag insertion function to avoid quadratic
behavior, and at the same time, fix handling of
alpha for color attributes.

Update the copy of this function in gtk4-demo
as well.

5 years agoMerge branch 'password-entry-activate' into 'master'
Matthias Clasen [Sat, 19 Sep 2020 18:12:35 +0000 (18:12 +0000)]
Merge branch 'password-entry-activate' into 'master'

Add GtkPasswordEntry::activate

Closes #3174

See merge request GNOME/gtk!2599

5 years agopasswordentry: Add an ::activate signal
Matthias Clasen [Sat, 19 Sep 2020 17:25:03 +0000 (13:25 -0400)]
passwordentry: Add an ::activate signal

GtkSearchEntry has one, no reason why GtkPasswordEntry
should not as well.

Fixes: #3174
5 years agopasswordentry: Drop the Private struct
Matthias Clasen [Sat, 19 Sep 2020 17:23:40 +0000 (13:23 -0400)]
passwordentry: Drop the Private struct

5 years agodocs: Add missing Wayland backend api
Matthias Clasen [Sat, 19 Sep 2020 17:13:31 +0000 (13:13 -0400)]
docs: Add missing Wayland backend api

Since Wayland is now our flagship backend,
we should put some effort into the docs.

5 years agowayland: Change backend api to use GdkToplevel
Matthias Clasen [Sat, 19 Sep 2020 17:05:57 +0000 (13:05 -0400)]
wayland: Change backend api to use GdkToplevel

Most of the surface api we have in the Wayland backend
only makes sense for toplevels, so reshuffle things to
take a GdkToplevel instead of a GdkSurface.

Update all callers and the docs.

5 years agoNEWS: Updates
Matthias Clasen [Sat, 19 Sep 2020 16:09:24 +0000 (12:09 -0400)]
NEWS: Updates

5 years agoMerge branch 'wip/baedert/radial-gradient' into 'master'
Matthias Clasen [Sat, 19 Sep 2020 15:49:14 +0000 (15:49 +0000)]
Merge branch 'wip/baedert/radial-gradient' into 'master'

Radial gradients

Closes #2262, #3170, and #3173

See merge request GNOME/gtk!2597